home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / text0098.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.5 KB  |  38 lines

  1. To Berionne
  2.  
  3. > > However some of the tips really surprised me. Ben states that A=A+1
  4. > > should be faster than both Inc A and Add A,1. He also writes that
  5. > > Repeat ... Inc ... Until should be faster than For ... Next. I have
  6. > > been doing some tests on my system and it clearly proves that this
  7. > > is WRONG!
  8.  
  9. > Well, you probably did your test from the amos editor, using the Amos
  10. > interpreter and your tests are right. But if you try to compile your code,
  11. > you'll see that Ben is right. It's strange but for example For Next is much
  12. > faster (about 300%) than Repeat Until when interpreted, but far slower
  13. (about
  14. > 50%) when compiled. So now, since you release all your software compiled,
  15. > it's better using Repeat Until and A=A+1. Of course, sometimes you will
  16. still
  17. > use For Next since it's easier to read, but limit it for small loops or
  18. where
  19. > speed isn't important.
  20.  
  21. NO! I did NOT do the test from the editor. As _written_ it was done from a
  22. stand-alone COMPILED executable file. If you won't believe please go buy an
  23. '060 and try for yourself.
  24.  
  25. > > I can not believe that Ben Wyatt has not checked his tips, so I must
  26. > > conclude that the difference in speed is different on different system
  27.  
  28. > I have got a 030 and Ben's tricks work well.
  29.  
  30. Okay, so has anyone tried them on a '040, or is it just the '060 who is acting
  31. "funny"!?
  32.  
  33. -- 
  34. rune j. keller - sporuplundsvej 105 - dk-8472 sporup - keller@vip.cybercity.dk
  35.      -you broke my arm! -there's 215 bones in the human body. that's one!
  36.  
  37.  
  38.